Repository navigation
Add pet attack, defence and dodge curves - #170
Conversation
MateStatService gives a pet's defences, dodge, damage and hit rate at its own level: the monster curves of its race with weapon and armour at the pet's level, each level share grown by the entry's melee, ranged or magic growth factor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkUgtue8mHJ8prh9NdK
|
No actionable comments were generated in the recent review. WalkthroughThe change extracts monster stat curves into ChangesMonster and pet stat calculations
Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Possibly related PRs
Suggested reviewers: Merge Risk:
|
Adds
IMateStatService/MateStatService: a pet's close, ranged and magic defence, dodge, minimum and maximum damage and hit rate at its own level, before the flat modifiers of its monster entry.A pet follows the monster curves of its race with its weapon and armour at the pet's level. Each curve's level share grows by one of the entry's three growth factors (
MateGrowth):The growth is in tenths per level above the first for dodge, damage and hit rate, and in twentieths for the defences, inside the same floor as the level share. With all three at 0 the stats are those of a monster of that level.
The race curves move to an internal
MonsterCurvesclass shared by both services.MonsterStatService's output is unchanged, and its approval table still passes.Checked against the published per-level stats of 11 pets (races 0 and 2, all three attack classes, levels 1 to 99): every value matches.
MateStatDocumentationasserts a sample and adds an approval table.New service only, so a minor version: 6.3.0.
Generated by Claude Code
Summary by CodeRabbit